package com.chenjun.common.crypto;

import java.security.NoSuchAlgorithmException;

import com.chenjun.common.util.crypto.MDUtils;

public class MD2Encryption implements IHashEncryption {

	@Override
	public String encode(String str) {
		String enStr = null;
		try {
			enStr = MDUtils.enMD2(str);
		} catch (NoSuchAlgorithmException e) {
			e.printStackTrace();
		}
		return enStr;
	}

}
